/*
* CourseStatisticsDao.java
* Created on  2014-5-15 上午9:43
* 版本       修改时间          作者      修改内容
* V1.0.1    2014-5-15       gaoxinyu    初始版本
*
*/
package com.genghis.ptas.course.dao;

import com.genghis.core.page.entity.Page;
import com.genghis.core.page.entity.PageParameter;
import com.genghis.ptas.statistic.entity.CourseStatistics;
import com.genghis.ptas.statistic.entity.Range;
import com.genghis.ptas.statistic.entity.Statistic;

/**
 * 类的描述信息
 *
 * @author gaoxinyu
 * @version 1.0.1
 */
public interface CourseStatisticsDao {
    int addCourseStatistics(CourseStatistics courseStatistics);

    CourseStatistics findCourseStatisticsById(Integer id);

    CourseStatistics findCourseStatisticsByCourseId(Integer courseId);

    void editCourseStatistics(CourseStatistics courseStatistics);

    void delCourseStatistics(Integer courseId);

    Page<CourseStatistics> findAllStatisticList(PageParameter pageParameter, CourseStatistics courseStatistics, Range range);

    CourseStatistics findNewsetAverageScoreByCourseId(Integer courseId);

    Page<Statistic> findUserStatisticList(PageParameter pageParameter, Statistic statistic,Range range);
}
